<template>
  <div>
    <h2 ref="title">About</h2>
    <Com :reff="reff"/>
  </div>
</template>

<script>
import Com from '../components/Com.vue'
export default {
  created() {
    // console.log('我是about')
    // 
    // this.$nextTick(() => {
    //   console.log(this.$refs.title)
    // })
  },
  data() {
    return {
      reff: ""
    }
  },
  mounted() {
    // 服务端渲染
    this.reff = this.$refs.title
    // setTimeout(() => {

    // }, 500)
  },
  methods: {
    init() {

    }
  },
  components: {
    Com
  }
}
</script>

<style>

</style>